export default function (props, emit) {
  function clickItem(item) {
    const fileList = _.searchCover(props.fileList, {id: item.id}, v => ({...v, isSpread: !v.isSpread, isChecked: item.type == 1 }), v => ({...v, isChecked: false}))
    emit('setFileList', fileList)
    emit('getCurItem', item)
  }
  return {
    emit,clickItem
  }
}